import request from '@/utils/request'
export default {
    getPageList(current, limit, searchObj) {
        return request({
            url: `/eduservice/course/selectPageCourse/${current}/${limit}`,
            method: 'post',
            data: searchObj
        })
    },
    // 获取课程二级分类
    getNestedTreeList2() {
        return request({
            url: `/eduservice/course/list2`,
            method: 'get'
        })
    },
    // 根据课程id查询课程的详细信息
    getById(courseId) {
        return request({
            url: `/eduservice/course/selectCourseVo/${courseId}`,
            method: 'get'
        })
    }
}